<form id="edit-form" class="form-horizontal" style="position:relative;background: #fff" role="form" data-toggle="validator" method="POST" action="">
    <input TYPE="hidden" id="row" NAME="data" VALUE='{$row|json_encode|htmlentities}'/>
    <div class="panel-body" style="padding:15px 25px;">
        <div id="myTabContent" class="tab-content" >
            <div class="tab-pane fade active in" id="tabs_0">
                <div class="form-group">
                    <label for="c-number" class="control-label col-xs-12 col-sm-2">位置描述:</label>
                    <div class="col-xs-12 col-sm-8" id="div-number">
                        <label for="c-number" class="control-label col-xs-12 col-sm-2"></label>
                        <div style="margin-top:-2px">
                            <select id="c-number" data-rule="require" class="form-control" name="row[number]">
                            </select>
                        </div>
                    </div>
                </div>

                   <!-- 图片组管理区域 -->
                   <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">图片管理:</label>
                        <div class="col-xs-12 col-sm-10">
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h4 class="panel-title">
                                        <i class="fa fa-images"></i> 轮播图片设置 
                                        <small class="text-muted">（最多可添加5张图片）</small>
                                    </h4>
                                </div>
                                <div class="panel-body" style="padding:15px 20px;">
                                    <div id="slider-images-container">
                                        <!-- 动态生成的图片组将在这里显示 -->
                                    </div>
                                    
                                    <!-- 添加图片按钮 -->
                                    <div class="text-center" style="margin-top: 15px;">
                                        <button type="button" id="add-image-group" class="btn btn-success">
                                            <i class="fa fa-plus"></i> 添加图片
                                        </button>
                                        <small class="text-muted">（已添加 <span id="image-count">0</span> / 5 张图片）</small>
                                    </div>

                                    <!-- 隐藏字段存储JSON数据 -->
                                    <input type="hidden" id="c-image" name="row[image]" value="{$row.image|htmlentities}" />
                                </div>
                            </div>
                        </div>
                   </div>
                <div class="form-group layer-footer">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                    </div>
                </div>
            </div>
            
        </div>
    </div>
</form>
